<template>
  <!-- 注册页面的整体盒子 -->
  <div class="reg-container">
    <!-- 注册的盒子 -->
    <div class="reg-box">
      <!-- 标题的盒子 -->
      <div class="title-box"></div>
      <el-form>
        <el-form-item>
          <el-input placeholder="请输入用户名" v-model="username"></el-input>
        </el-form-item>
        <el-form-item>
          <el-input placeholder="请输入密码" v-model="password" :show-password="true"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" class="btn-reg">登录</el-button>
          <el-link type="info" :underline="false">去注册</el-link>  
        </el-form-item>
      </el-form>
      <!-- 注册的表单区域 -->
    </div>
  </div>
</template>

<script>
export default {
  name: "Login",
  data() {
    return {
        username:'',
        password:''
    }
  },
};
</script>

<style lang="less" scoped>
.reg-container {
  background: url("@/assets/images/login_bg.jpg") center;
  background-size: cover;
  height: 100%;

  .reg-box {
    width: 400px;
    height: 270px;
    background-color: #fff;
    border-radius: 3px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    .title-box {
      height: 60px;
      background: url("@/assets/images/login_title.png") center no-repeat;
    }
  }

  .el-form {
    padding: 0 25px;
  }

  .btn-reg {
    width: 100%;
  }
}
</style>
